// Programming_Scala/src/ch08/isdefinedat-script.scala
val pantsTest: PartialFunction[ String, String ] = {
  case "pants" => "yes, we have pants!"
}

println( pantsTest.isDefinedAt( "pants" ) )
println( pantsTest.isDefinedAt( "skort" ) )
